﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ParticleEditor
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //Application.Run(new Form1()); // replacing with own code

            EditorForm myform = new EditorForm();
            myform.Show();
            myform.activeEmitter = myform.activeEmitter.LoadFromXML("DemoLoad.pxml");

            while(myform.loop)
            {
                myform.Update();
                myform.Render();
                Application.DoEvents(); // must be here or c# will not do anything
            }
        }
    }
}
